﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Ricciolo.StylesExplorer.Model;
using System.ComponentModel;

namespace Ricciolo.StylesExplorer.Controls
{
    class AssemblyTreeNode : ExplorerTreeNode, ITreeNodeChildren
    {

        private IAssembly asm;

        public AssemblyTreeNode(IAssembly asm)
        {
            this.asm = asm;
            this.Text = asm.Name;
            this.ImageKey = "Assembly";
            this.SelectedImageKey = this.ImageKey;
        }

        #region ITreeNodeChildren Members

        System.ComponentModel.IBindingList ITreeNodeChildren.Children
        {
            get { return asm.XamlFiles as IBindingList; }
        }

        #endregion
    }
}
